package com.fg.cloud.manager.mapper.system;

import java.util.List;
import java.util.Map;

import com.fg.cloud.common.PageUtils;
import com.fg.cloud.manager.entry.system.InvoiceManageEntity;

public interface InvoiceManageMapper {

	/**
	 * 发票新增
	 * */
	Long insert(InvoiceManageEntity invoice);

	/**
	 * 发票修改
	 * */
	Long update(InvoiceManageEntity invoice);

	/**
	 * 发票删除
	 * */
	Long delete(Map<String, Object> usmap);

	/**
	 * 厂商查询发票权限
	 * */
	//InvoiceControlEntity selectPower(Map<String, Object> usmap);

	/**
	 * 厂商新增发票权限
	 * */
	void insertPower(Map<String, Object> usmap);

	/**
	 * 厂商修改发票权限
	 * */
	//Long updatePower(InvoiceControlEntity ice);

	/**
	 * 厂商查询发票条数
	 * */
	Long findInvoiceManageCont(PageUtils<InvoiceManageEntity> pageinfo);

	/**
	 * 厂商查询发票
	 * */
	List<InvoiceManageEntity> findInvoiceManage(PageUtils<InvoiceManageEntity> pageinfo);

	/**
	 * 
	 * */
	List<InvoiceManageEntity> findInvoiceManageByFacId(Map<String, Object> usmap);
	
	/**
	 * Description:通过ID查询发票信息
	 * @param id 发票ID
	 * @return 发票信息实体
	 * @author liushengchao
	 * @date  2017年9月15日下午4:21:09
	 */
	InvoiceManageEntity find(Long id) ;

}
